/*package cn.aticow.springboot.bean;


import com.alibaba.fastjson.JSONObject;
import com.google.gson.Gson;
import com.google.gson.JsonObject;
*//*
    简单的json字符串与java对象的互相转换
 *//*
public class TestJson {
    public static void main(String[] args) {
        AgvFeedBack feedBack = new AgvFeedBack();
        feedBack.setIntendedVehicle("Vehicle-0001");
        feedBack.setTaskNo("v1order");
        feedBack.setTaskState("LOAD_COMPLETED");
        //如何将对象转换未JSON格式
        Gson gson=new Gson();
        String json=gson.toJson(feedBack);
        System.out.println(json);
        //如何将JSON格式的字符串准换为对象
        JSONObject jsonObject=JSONObject.parseObject(json);
        AgvFeedBack testAgvFeedBack=jsonObject.toJavaObject(jsonObject,AgvFeedBack.class);
        System.out.println(testAgvFeedBack.getTaskState());
        System.out.println(testAgvFeedBack.getIntendedVehicle());
        System.out.println(testAgvFeedBack.getTaskNo());
    }
}*/
